/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.dp;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 正风肃纪工作情况 实体类
 *
 * @author gangan
 * @since 2019-09-27
 */
@Data
@TableName("dp_upright_disciplined")
@EqualsAndHashCode(callSuper = true)
public class UprightDisciplined extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 单据编号
	*/
		private String code;
	/**
	* 填表单位
	*/
		private String fillingUnitId;
	/**
	* 填表年月
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_MONTH)
	@TableField(value = "filling_time",updateStrategy = FieldStrategy.IGNORED)
		private Date fillingTime;
	/**
	* 单位名称
	*/
		private String companyId;
	/**
	* 专项行动（次）
	*/
		private Integer specialAction;
	/**
	* 出动人员（人次）
	*/
		private Integer dispatchPersonnel;
	/**
	* 检查单位（家）
	*/
		private Integer inspectionUnit;
	/**
	* 发现问题（起）
	*/
		private Integer discoverProblems;
	/**
	* 处理人员（人）
	*/
		private Integer handler;
	/**
	* 下发通报（起）
	*/
		private Integer announcement;
	/**
	* 媒体曝光（起）
	*/
		private Integer mediaExposure;
	/**
	* 其他
	*/
		private Integer other;
	/**
	* 版本号
	*/
		private String version;
	/**
	* 审批人
	*/
		private String approvedUser;
	/**
	* 审批时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date approvedTime;
	/**
	* 审批意见
	*/
		private String approvedOpinion;
	/**
	* 乐观锁字段
	*/
		private Integer tsVersion;
	/**
	* 所属组织
	*/
		private String orgId;
	/**
	* 所属部门
	*/
		private String deptId;

	private String formType;

	/**
	 * 备选1 存填报时间的年月 方便对比
	 */
	private String def1;
	private String def2;
	private String def3;
	private String def4;
	private String def5;
	private String def6;
	private String def7;
	private String def8;
	private BigDecimal def9;
	private BigDecimal def10;
	private BigDecimal def11;
	private BigDecimal def12;
	private BigDecimal def13;
	private Date def14;
	private Date def15;
	private Date def16;
	private Date def17;
	private Long def18;
	private Long def19;
	private Long def20;

	@TableField(exist = false)
	private List<HashMap> docList;

}
